package com.test;

/**
 * Created by baiguantao on 2017/8/18.
 */
public class RegexUtils {
    public static void main(String[] args) {
        //测试替换jeffs替换为Jeff's
        String regex="/\bjeffs\b/jeff's/";
        String str="jeffs";
        str=str.replaceAll(regex,str);
        System.out.println(str);

    }
}
